package com.kc.gb.device.common.adapter.dto.basic.slot;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;

@Data
@AllArgsConstructor
public class SlotPosition {

    private String slotCode;

    private String rackCode;

    private String mapCode;

    @ApiModelProperty("库位自身位置x 中心")
    private int x;

    @ApiModelProperty("库位自身位置y 中心")
    private int y;

    @ApiModelProperty("库位映射地面点位。仅缓存库位有意义")
    private String pointCode;

    @ApiModelProperty("库位自身位置z 底边位置")
    private int z;

    @ApiModelProperty("库位作业点x 中心投影")
    private int workX;

    @ApiModelProperty("库位作业点y 中心投影")
    private int workY;

    @ApiModelProperty("伸叉距离")
    private int takeDistance;

    public SlotPosition() {
        // for jackson
    }

    public String toCoordinate() {
        return x + "," + y + "," + z;
    }
}
